package parser;

import ast.ASTNode;
import ast.ASTTree;
import scanner.Token;

public class ParserError {
	Token token;
	ASTTree tree;
	String desc;
	
	public ParserError(Token token, ASTTree tree, String desc) {
		this.token = token;
		this.tree = tree;
		this.desc = desc;
	}
	
	public Token getNodeData() {
		return token;
	}
	
	public ASTTree getTree() {
		return tree;
	}
	
	public String getDesc() {
		return desc;
	}
	
	public String toString() {
		return "Token: " + token.toString() + "\nDescription: " + desc + "\n Tree: \n" + tree.toString();
	}
}
